package com.gmail.liulijuan;

public class SuanFa2_1 {

	
	public static void main(String[] args) {
		int n=12345;
		int k=0;
		int[] a=new int[100];
		while (n>0) {
			a[k]=n % 10;
			n=n/10;
			k=k+1;
		}
		for (int i = k-1; i >= 0; i--) {
			System.out.printf("%2d",a[i]);
		}
		
	}

}